package com.exit490.cfp.helper;

import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;

public class DataSourceHelper {

    
    private SQLiteDatabase database;
    private PessoalHelperDB dbHelper;

    public DataSourceHelper(Context context) throws SQLException {
        dbHelper = new PessoalHelperDB(context);
        this.setDatabase(dbHelper.getWritableDatabase());
    }

    public void close() {
        dbHelper.close();
    }

    public SQLiteDatabase getDatabase() {
        return database;
    }

    public void setDatabase(SQLiteDatabase database) {
        this.database = database;
    }
}
